<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//use Illuminate\Routing\Route;
use Illuminate\Contracts\Routing\Registrar as RouteContract;
use Illuminate\Support\Facades\Route;

Route::group(['prefix' => '',], function (RouteContract $api) {
    $api->get('/','IndexController@index');
    $api->get('/send','IndexController@sendMq');
    $api->get('/rec','IndexController@recMq');
    $api->get('/mq-send','IndexController@rmSend');
    $api->get('/email','IndexController@sendEmail');
});

Route::group(['prefix' => 'mq',], function (RouteContract $api) {
    $api->get('/send','RabbitMqController@sendMessage');
    $api->get('/rec','RabbitMqController@recMessage');
});

Route::get('/phpinfo', function (){
    phpinfo();
});
Route::get('/test', function (){
});



Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');
